//
// C++ Interface: qtaddinterface
//
// Description:
//
//
// Author: Willi Ballenthin <wilbal1087@gmail.com>, (C) 2008
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef QTADDINTERFACE_H
#define QTADDINTERFACE_H

#include "activitywidget.h"
#include "activitydbinterface.h"
#include <QtCore>
#include <QtGui>
#include "activity.h"
#include "ui_activityeditwidget.h"

/**
    @author Willi Ballenthin <wilbal1087@gmail.com>
*/

// 665 x 260

class ActivityEditWidget : public ActivityWidget
{
        Q_OBJECT
    public:
        ActivityEditWidget (ActivityDbInterface* interface, QWidget *parent = 0 );

    public slots:
        void submit();
        void cancel();
        void discard();
        void edit(Activity act);
        void updateUi();

    signals:
        void updatedDb();

    private slots:
        void clearStatusMessage();

    private:
        void setStatusMessage(QString string);
        Activity* activity;
        Ui::ActivityEditWidget ui;
};

#endif
